package wowmobile;

class Coordinate
{
    private int x;
    private int y;
    private int turn;

    public Coordinate()
    {
        x=2;
        y=2;
        turn=1;
    }

    public int getTurn() {
        return turn;
    }

    public void setTurn(int turn) {
        this.turn = turn;
    }

    public Coordinate(int x, int y)
    {
        this.x=x;
        this.y=y;
    }

    public void setX(int x)
    {
        this.x=x;
    }

    public int getX()
    {
        return x;
    }

    public void setY(int y)
    {
        this.y=y;
    }

    public int getY()
    {
        return y;
    }

    public void setCoordinate(int x, int y, int turn)
    {
        this.x=x;
        this.y=y;
        this.turn=turn;
    }

    public String toString()
    {
        return turn+","+x+","+y;
    }
}
